const fs = require("fs");
const path = require("path");

var filePath = path.join(__dirname,"/2.txt");
var readable = fs.createReadStream(filePath);
var writable = fs.createWriteStream(path.join(__dirname,"/4.txt"));
readable.pipe(writable);